package cn.etgps.etgps.core;

import cn.etgps.etgps.api.AppHttpApi;


/**
 * Created by itte on 2016/3/8.
 */
public class AppApiFactory {
    /**
     * 数据主机地址
     **/
    public static final String HOST = "http://58.211.8.49/vehicleapi/WebService/";
    protected static final Object monitor = new Object();
    public static AppHttpApi appHttpApi;//api地址

    public static AppHttpApi getApiInstance() {
        synchronized (monitor) {
            if (appHttpApi == null) {
                appHttpApi = new AppRetrofit().createApiService();
            }
            return appHttpApi;
        }
    }
}
